javascript get element by class

99

get element by class -

var elements = document.getElementsByClassName(names); // or:
var elements = rootElement.getElementsByClassName(names);

Comments

Submit
0 Comments